package com.csxy.six.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csxy.six.R2;
import com.csxy.six.entity.Blacklist;

import java.time.LocalDateTime;
import java.util.List;

public interface BlacklistService extends IService<Blacklist> {
    R2<List<Blacklist>> getAllBlacklist();
    R2<Void> addToBlacklist(Long userId, String reason, LocalDateTime endTime);
    R2<Void> removeFromBlacklist(Long userId);
    R2<Boolean> checkIfBanned(Long userId);
    R2<Blacklist> getBlacklistById(Long id);
    R2<Blacklist> updateBlacklist(Long id, String reason, LocalDateTime endTime);
    R2<Void> removeFromBlacklistById(Long id);
}